home *** CD-ROM | disk | FTP | other *** search
/ Enter 2006 February / enter-2006-02.iso / files / easy2do_setup.exe / {app} / docs / skin / forrest.css.xslt < prev    next >
Encoding:
Extensible Markup Language  |  2005-10-09  |  2.7 KB  |  84 lines

  1. <?xml version="1.0"?>
  2. <!--
  3.   Copyright 2002-2004 The Apache Software Foundation
  4.  
  5.   Licensed under the Apache License, Version 2.0 (the "License");
  6.   you may not use this file except in compliance with the License.
  7.   You may obtain a copy of the License at
  8.  
  9.       http://www.apache.org/licenses/LICENSE-2.0
  10.  
  11.   Unless required by applicable law or agreed to in writing, software
  12.   distributed under the License is distributed on an "AS IS" BASIS,
  13.   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  14.   See the License for the specific language governing permissions and
  15.   limitations under the License.
  16. -->
  17. <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
  18.   <!-- This is not used by Forrest but makes it possible to debug the 
  19.        stylesheet in standalone editors -->
  20.   <xsl:output method = "text"  omit-xml-declaration="yes"  />
  21.  
  22. <!--
  23.   If the skin doesn't override this, at least aural styles 
  24.   and extra-css are present 
  25. -->
  26.   <xsl:template match="skinconfig">
  27.  
  28.    <xsl:call-template name="aural"/>
  29.    <xsl:call-template name="a-external"/>
  30.    <xsl:apply-templates/>
  31.   </xsl:template>
  32.  
  33.   <xsl:template match="colors">
  34.    <xsl:apply-templates/>
  35.   </xsl:template>
  36.   
  37.   <xsl:template name="aural">
  38.  
  39. /* ==================== aural ============================ */
  40.  
  41. @media aural {
  42.   h1, h2, h3, h4, h5, h6 { voice-family: paul, male; stress: 20; richness: 90 }
  43.   h1 { pitch: x-low; pitch-range: 90 }
  44.   h2 { pitch: x-low; pitch-range: 80 }
  45.   h3 { pitch: low; pitch-range: 70 }
  46.   h4 { pitch: medium; pitch-range: 60 }
  47.   h5 { pitch: medium; pitch-range: 50 }
  48.   h6 { pitch: medium; pitch-range: 40 }
  49.   li, dt, dd { pitch: medium; richness: 60 }
  50.   dt { stress: 80 }
  51.   pre, code, tt { pitch: medium; pitch-range: 0; stress: 0; richness: 80 }
  52.   em { pitch: medium; pitch-range: 60; stress: 60; richness: 50 }
  53.   strong { pitch: medium; pitch-range: 60; stress: 90; richness: 90 }
  54.   dfn { pitch: high; pitch-range: 60; stress: 60 }
  55.   s, strike { richness: 0 }
  56.   i { pitch: medium; pitch-range: 60; stress: 60; richness: 50 }
  57.   b { pitch: medium; pitch-range: 60; stress: 90; richness: 90 }
  58.   u { richness: 0 }
  59.   
  60.   :link { voice-family: harry, male }
  61.   :visited { voice-family: betty, female }
  62.   :active { voice-family: betty, female; pitch-range: 80; pitch: x-high }
  63. }
  64.   </xsl:template>
  65.   
  66.   <xsl:template name="a-external">
  67. a.external  {
  68.   padding: 0 20px 0px 0px;
  69.     display:inline;
  70.   background-repeat: no-repeat;
  71.     background-position: center right;
  72.     background-image: url(images/external-link.gif);
  73. }
  74.   </xsl:template>
  75.   
  76.   <xsl:template match="extra-css">
  77.     <xsl:value-of select="."/>
  78.   </xsl:template>
  79.   
  80.   <xsl:template match="*"></xsl:template>
  81.   <xsl:template match="text()"></xsl:template>
  82.  
  83. </xsl:stylesheet>
  84.